32dae99c6079eb8ebe601d410e2f8d93de3a9460,clustering/web/undertow/src/main/java/org/wildfly/clustering/web/undertow/session/SessionManagerFacade.java,SessionManagerFacade,getSession,#HttpServerExchange#SessionConfig#,119
Before Change
if (id == null) return null;
Batcher batcher = this.manager.getBatcher();
boolean started = batcher.startBatch();
Session<Void> session = this.manager.findSession(id);
if (session == null) {
if (started) {
batcher.endBatch(false);
}
return null;
}
return this.getSession(session, exchange, config);
}
/**
After Change
boolean started = batcher.startBatch();
Session<Void> session = null;
try {
session = this.manager.findSession(id);
return (session != null) ? this.getSession(session, exchange, config) : null;
} finally {
if (started && (session == null)) {
batcher.endBatch(false);